l1 = [10, 15, 'tom', [1, 2, 3]]
print(l1)
[10, 15, 'tom', [1, 2, 3]]
len(l1)
4
l1[0]
10
l1[-1]
[1, 2, 3]
l1[2:4]
s1 = [10, 15, 20, 'tom', 'jerry', [1, 2, 3]]
s1
[10, 15, 20, 'tom', 'jerry', [1, 2, 3]]
s1 * 2
[10, 15, 20, 'tom', 'jerry', [1, 2, 3], 10, 15, 20, 'tom', 'jerry', [1, 2, 3]]
s1 + [20]
[10, 15, 20, 'tom', 'jerry', [1, 2, 3], 20]
s1[0]
10
s1[-1]
[1, 2, 3]
s1[-2] = 100
s1
[10, 15, 20, 'tom', 100, [1, 2, 3]]
s1[2:4]
[20, 'tom']
15 in s1
True
print('Hello' 'World')
print('Hello' + 'World')
